/*
 * @FilePath: /my-map-demo/vite.config.js
 * @Author: 张文鑫
 * @Date: 2024-11-07 09:29:33
 * @Description:
 */
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import path from "path";

// https://vite.dev/config/
export default defineConfig({
  plugins: [vue()],
  resolve: {
    alias: {
      "@": path.resolve(__dirname, "src"), // 将 @ 映射到 src 目录
    },
  },
  server: {
    proxy: {
      "/sxmap": {
        target: "https://jfzx.zzb.sx.gov.cn",
        changeOrigin: true,
        secure: false,
      },
    },
  },
});
